<div class="post_list">

    <div class="table-data-list">
        <form name="form" class="form" action="index.php?c=<?php echo $_REQUEST['c']; ?>&m=<?php echo $_REQUEST['m'];?>" method="post">
            <table class="table">
                <thead>
                <tr class="active">
                    <th>主题贴</th>
                    <th>评论内容</th>
                    <th>作者/时间</th>
                    <th>是否有音频</th>
                    <th>类型</th>
                    <th>状态</th>
                </tr>
                </thead>
                <tbody>
                <?php
                    foreach($list as $thread){
                ?>
                    <tr>
                        <td>
                            <?php
                                $post=$this->PostModel->query_one(array('id'=>$thread['post_id']));
                                echo $post['title'];
                            ?>
                        </td>
                        <td>
                            <span class="subject" <?php if($thread['is_hot']){ echo 'style="font-weight: bold;color: #EE1B2E;"';}?>>
                                    <?php echo $thread['desc'];?>
                            </span>
                        </td>
                        <td>
                            <?php $userInfo = $this->UserModel->getUserInfo($thread['uid']);?>
                            <a href="index.php?c=user&m=user_info&uid=<?php echo $thread['uid'];?>" class="user"><?php echo $userInfo['nickname'];?></a>
                            <em><?php echo date('Y-m-d H:i:s',$thread['add_time']);?></em>
                        </td>
                        <td><?php echo $thread['audio_id']?"有":"无";?></td>
                        <td>
                            <?php
                            if($thread['type']==1){echo "正常回复";}
                            if($thread['type']==2){echo "机器人回复";}
                            if($thread['type']==3){echo $thread['source']?$thread['source'].'导入':"未知导入";}
                            ?>
                        </td>
                        <td>
<!--                            --><?php //echo $data['status'] == 2?"[未通过]":($data['status'] == -1?"[已删除]":"")?>
<!--                            评论状态-1:删除 0:审核 1:通过 2:未通过-->
                            <?php echo $data['status']==0?"待审核":($data['status']==1?"审核成功":($data['status']==2?"未通过":($data['status'] == -1 ?"已删除":"审核中")))?>
                        </td>
                    </tr>
                <?php } ?>
                </tbody>
            </table>
        </form>
    </div>
    <div class="set_page">
        <?php echo $multipage; ?>
        <div class="clearfix"></div>
    </div>
</div>